package org.example.designpattern.bridge;

public class Test {
    public static void main(String[] args) {
        /**
         * 大杯加奶
         */
        RefinedCoffee largeWithMilk=new LargeCoffee(new Milk());
        largeWithMilk.orderCoffee(2);
        largeWithMilk.checkQuality();
        /**
         * 中杯加奶
         */
        RefinedCoffee middleWithMilk=new MiddleCoffee(new Milk());
        middleWithMilk.orderCoffee(2);
        middleWithMilk.checkQuality();
        /**
         * 小杯加奶
         */
        RefinedCoffee smallWithMilk=new SmallCoffee(new Milk());
        smallWithMilk.orderCoffee(2);
        smallWithMilk.checkQuality();
    }
}
